from distutils.core import setup
import py2exe

incl = ['reportlab.pdfbase._fontdata_widths_courier',
 'reportlab.pdfbase._fontdata_widths_courierbold',
 'reportlab.pdfbase._fontdata_widths_courieroblique',
 'reportlab.pdfbase._fontdata_widths_courierboldoblique',
 'reportlab.pdfbase._fontdata_widths_helvetica',
 'reportlab.pdfbase._fontdata_widths_helveticabold',
 'reportlab.pdfbase._fontdata_widths_helveticaoblique',
 'reportlab.pdfbase._fontdata_widths_helveticaboldoblique',
 'reportlab.pdfbase._fontdata_widths_timesroman',
 'reportlab.pdfbase._fontdata_widths_timesbold',
 'reportlab.pdfbase._fontdata_widths_timesitalic',
 'reportlab.pdfbase._fontdata_widths_timesbolditalic',
 'reportlab.pdfbase._fontdata_widths_symbol',
 'reportlab.pdfbase._fontdata_widths_zapfdingbats',
 'reportlab.pdfbase._fontdata_enc_winansi',
 'reportlab.pdfbase._fontdata_enc_macroman',
 'reportlab.pdfbase._fontdata_enc_standard',
 'reportlab.pdfbase._fontdata_enc_symbol',
 'reportlab.pdfbase._fontdata_enc_zapfdingbats',
 'reportlab.pdfbase._fontdata_enc_pdfdoc',
 'reportlab.pdfbase._fontdata_enc_macexpert'
]

setup(
  windows=['fb2print-gui.pyw'], 
  data_files=[('.', ['DroidSans.ttf', 'DroidSansMono.ttf', 'DroidSerif.ttf', 'DroidSerif-Bold.ttf', 'DroidSerif-Italic.ttf', 
                     'PTSerif-Regular.ttf', 'PTSerif-Bold.ttf', 'PTSerif-Italic.ttf',
                     'gui-config.py']),
              ('dict', ['dict/hyph_en.dic', 'dict/hyph_ru.dic'])],
  zipfile='lib',
  options={"py2exe": {"includes": incl, "skip_archive": 1, "optimize": 2 } }
)


